package com.eagle.roomcrawler.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Getter
@Setter
@ToString
@Document(indexName="roomcrawler",type="roominfo",indexStoreType="fs",shards=5,replicas=1,refreshInterval="-1")
public class RoomInfo {
    @Id
    private Long id;
    //租房信息详情url
    private String url;
    //图片url
    private String img;
    //标题
    private String title;
    //房子规格，是否整租，几室几厅，房子大小
    private String font;
    //房子所在地址
    private String addr;
    //说明
    private String note;
    //价格
    private String price;
    //地铁信息
    private String subway;
}
